//
//  ViewController.m
//  LeaksTest
//
//  Created by lirenqiang on 2016/11/7.
//  Copyright © 2016年 1111. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSString *comment = @"";
    NSLog(@"comment.integer = %zd", comment.integerValue);
    NSLog(@"comment.length = %zd", comment.length);
}

- (UIImage *)getSubImage;
{
    UIImage *sourceImage = [UIImage imageNamed:@"a"];
    
    CGRect rect = CGRectMake(0, 0, 100, 100);
    CGImageRef imageRef = CGImageCreateWithImageInRect(sourceImage.CGImage, rect);
    UIImage *smallImage = [UIImage imageWithCGImage:imageRef];
    
    return smallImage;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
